<?php 
 $form=$this->form; 	
Application_Model_Decorator::removeAllDecorator($form);
	$cancel_url=$this->url(array(
		'module'=>'userWu',
		'controller'=>'acl',
		'action'=>'index',
	));
	$tr = Application_Form_FrmLanguages::getCurrentlanguage();
?>

<title><?php echo $tr->translate("MENU_RSVACL_ACL_ADD_ACL");?></title>
<script type="text/javascript">
	jQuery(Document).ready(function(){
		//binds form submission and fields to the validation engine
		jQuery('#frm').validationEngine('attach', {promptPosition : "centerRight"});
		
	});
</script>

<style>
fieldset.fifthy {	
	border-right: 0px;
	width: 50%;	
}
table.user td{
	vertical-align: top;
	padding-left: 5px;	   
}
</style>       
<script language="javascript">
      var temp=-1;
   
	function validateUser(field)
	{
		if(temp==1) return '* User type already exist!';
		else temp==-1;
	}
</script>


<div class="right" style="width: 97%; padding: 10px;">
<form id="frm" action="<?php echo $form->getAction(); ?>" method="post" enctype="application/x-www-form-urlencoded" >	
	<div class="btn" align="right">
		    <button type="submit" class="positive" name="save">
		        <img src="<?php echo BASE_URL?>/images/icon/apply2.png" alt=""/>
		        <?php echo $tr->translate('SAVE');?>
		    </button>												   						
		    <a href="<?php echo $cancel_url; ?>" class="negative">
		        <img src="<?php echo BASE_URL?>/images/icon/cross.png" alt=""/>
		        <?php echo $tr->translate('CANCEL');?>
		    </a>
   </div>
	<div class="view-table">
		<div class="head_form">
			<?php echo $tr->translate('MODULE')."/".$tr->translate('CONTROLLER')."/".$tr->translate('ACTION');?>
		</div>
		<div class="contain_form shadow">
			<table class="margin" >
<!-- 				<tr class="height"> 
						<?php //echo $form->getElement('acl_id');?>
					<td><?php //echo "USER NAME FOR MODULE"?></td>
					<td><?php //echo $form->getElement('user_type_id');?></td>				
				</tr> -->
				<tr class="height">
					<td><?php echo $tr->translate('MODULE')." ".$tr->translate('NAME');?></td>
					<td><?php echo $form->getElement('module');?></td>				
				</tr>
				<tr class="height">
					<td><?php echo $tr->translate('CONTROLLER')." ".$tr->translate('NAME');?></td>
					<td><?php echo $form->getElement('controller');?></td>				
				</tr>
				<tr class="height">
					<td><?php echo $tr->translate('ACTION')." ".$tr->translate('NAME');?></td>
					<td><?php echo $form->getElement('action');?></td>				
				</tr>
			</table>
		</div>
	</div>					
</form>
</div>